package com.ysd.lis.controller.inti;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.inti.IntinstrGermReusltDto;
import com.ysd.lis.request.lab.IntInstrResultParam;
import com.ysd.lis.service.inti.IntInstrGermResultService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 检验业务表 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-11-25
 */
@RestController
@RequestMapping("/int/instrGermResult")
public class IntInstrGermResultController extends BaseController {
    @Autowired
    IntInstrGermResultService intInstrGermResultService;

    @ApiOperation("同步缓存到业务表接口")
    @GetMapping("/transIntInstrGermResult")
    public Result transIntInstrGermResult() {
        return intInstrGermResultService.transIntInstrGermResult();
    }

    @ApiOperation("获取为对应通道号的仪器结果数据")
    @GetMapping("/findInstrGermResultNoChannelList")
    public Result findInstrGermResultNoChannelList(IntInstrResultParam param) {
        return intInstrGermResultService.findInstrGermResultNoChannelList(param);
    }
    @ApiOperation("获取为对应通道号的仪器结果数据")
    @GetMapping("/findGermAndAntDictlList")
    public Result findGermAndAntDictlList(IntInstrResultParam param) {
        return intInstrGermResultService.findGermAndAntDictlList(param);
    }

    @ApiOperation("批量新增")
    @PostMapping("/saveBacthGermNoChannelResult")
    public Result saveBacthGermNoChannelResult(@RequestBody IntinstrGermReusltDto dto){
        return  intInstrGermResultService.saveBacthGermNoChannelResult(dto);
    }

}
